package com.company;

import java.util.Arrays;

public class Main {

    public static void main(String[] args) {
	// write your code here
        int[] a={1,99,12,55,45,68,78,45,15,45,35,15,22};
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));
        metheod();
    }
    public static void metheod(){
        int[] a={1,2,3,4,5,6,7,8,9,10};
       int[] newA = Arrays.copyOf(a,15);
       System.out.println(Arrays.toString(newA));
       int[] newB=Arrays.copyOf(a,5);
       System.out.println(Arrays.toString(new));
    }



}
